package guess;

/**
 * 角色类
 */
public class Role {
    private String name;
    private int score;

    public Role() {
    }

    public Role(String name) {
        this.name = name;
    }

    /**
     * 加减当前对象的分数
     * @param value 加或减的值
     */
    public void controlScore(int value){
        this.score += value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
